<template>
    <div>
        <h1 style="color:pink">{{name}}</h1>

        <el-button @click="add">+</el-button>
        <el-button @click="del">-</el-button>
    </div>
</template>

<script>
    export default {
        props: ['name'],
        data(){
            return {
                
            }
        },
        methods:{
            add(){
                this.$emit('add')
            },
            del(){
                this.$emit('del')
            },

        }
    }
</script>

<style>
</style>